<?php if (isset($marque)): ?>
<div class="row-fluid">
    <div class="span12">
        <div class="box gradient">
            <div class="title">
                <h4>
                    <span>Danh sách các Catalog của thương hiệu <?php echo $marque->name ?></span>
                </h4>
            </div>
            <div class="content noPad clearfix">
              <table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
                <thead>
                  <tr>
                    <th>
                        <span>ID</span>
                    </th>
                    <th>
                        <span>Website</span>
                    </th>
                    <th>
                        <span>Thương hiệu</span>
                    </th>
                    <th>
                        <span>Tên</span>
                    </th>
                    <th>
                        <span>Brands</span>
                    </th>
                    <th>
                        <span>Sản phẩm</span>
                    </th>
                  </tr>
				</thead>
				<tbody>
				  <?php foreach ($marque->Catalogs as $catalog): ?>
                    <tr>
                        <td style='text-align:center;'><?php echo $catalog->id ?></td>
                        <td style='text-align:center;'><?php echo $catalog->Marque->Jobboard->name ?></td>
                        <td style='text-align:center;'><?php echo $catalog->Marque->name ?></td>
                        <td style='text-align:center;'><?php echo $catalog->name ?></td>
                        <td style="text-align:center"><a href="<?php echo url_for('@brand_list?catalog_id='.$catalog->id) ?>">Xem</a></td>
                        <td style="text-align:center"><a href="<?php echo url_for('@product_list?catalog_id='.$catalog->id) ?>">Xem</a></td>
                    </tr>
                  <?php endforeach ?>
    			</tbody>
  				</table>
        	</div>
    	</div>
	</div>
</div>
<?php endif ?>